package com.RKB.service.impl;

import com.RKB.dao.UserDao;
import com.RKB.pojo.User;
import com.RKB.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceimpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }

    @Override
    public List<User> findByUsername(User user) {
        return userDao.findByUsername(user);
    }

    @Override
    public List<User> signUser(User user) {
        return userDao.signUser(user);
    }
}
